package afcp.alumni.service;

import java.util.List;

import afcp.alumni.dao.DefectDao;
import afcp.alumni.model.db.Defect;

public class DefectService {
	
	DefectService() {}

//	private static final Log logger = LogFactory.getLog(DefectService.class);
	
	private DefectDao defectDao = DefectDao.getDao();
	
	public List<Defect> getDefects() {
		return defectDao.findAll();
	}
	
	public boolean addDefect(Defect defect) {
		return defectDao.addOrUpdate(defect);
	}

}
